package com.example.proxy.controller;

import com.example.proxy.bs.IDance;
import com.example.proxy.as.IRuner;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
public class ProxyController {
    @Autowired(required = false)
    IDance dance;
    @Autowired
    IRuner runer;

    @RequestMapping("/test")
    public Object test(){
        Map<String,Object> map= new HashMap<>();
        String zou = dance.zou();
        map.put("dance",zou);
        String run = runer.run();
        map.put("runer",run);

        return map;
    }
}
